import 'package:flutter/material.dart';
import 'package:flutter_anim_test/custom/canvas_test.dart';
import 'package:flutter_anim_test/chart/line_chart.dart';

import 'chart/line_chart_max_data.dart';
import 'custom/collapsing_toolbar_page.dart';
import 'custom/custom_widget_page.dart';
import 'custom/scroll_top_sticky_page.dart';
import 'explicit_anim.dart';
import 'flutter_animate_test.dart';
import 'custom/slide_power_btn.dart';
import 'implicit_anim.dart';
import 'main.dart';
import 'native_message.dart';

// Map<String, FlutterBoostRouteFactory> routerMap = {
//   'mainPage': (RouteSettings settings, bool isContainerPage, String? uniqueId) {},
//   'simplePage': (RouteSettings settings, bool isContainerPage, String? uniqueId) {},
// };

Map<String, WidgetBuilder> routers = {
  "/home": (context) => const MyHomePage(title: "首页"),
  "/implicit": (context) => const ImplicitAnimPage(title: "隐式动画"),
  "/explicit": (context) => const ExplicitAnimPage(title: "显示动画"),
  "/flutter_animate": (context) => const FlutterAnimateTest(title: "flutter_animate"),
  "/canvas": (context) => const CanvasTestPage(title: "canvas 测试"),
  "/native/message": (context) => const NativeMessagePage(title: "原生交互"),
  "/LineChart": (context) => const LineChartSample12(),
  "/LineMaxDataChart": (context) => const LineMaxDataChart(),
  "/custom/widget": (context) => const CustomWidgetPage(),
  "/CollapsingToolbarPage": (context) => const CollapsingToolbarPage(),
  "/ScrollTopStickyPage": (context) => const ScrollTopStickyPage(),
  // "/native/page1": (context) => const ExplicitAnimPage(title: "显示动画"),
};
